workspace(name = "hbase_client")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# setup rules_python
http_archive(
    name = "rules_python",
    sha256 = "fda23c37fbacf7579f94d5e8f342d3a831140e9471b770782e83846117dd6596",
    strip_prefix = "rules_python-0.15.0",
    urls = ["https://github.com/bazelbuild/rules_python/archive/refs/tags/0.15.0.tar.gz"],
)

load("@rules_python//python:pip.bzl", "pip_parse")

# Create a central repo that knows about the dependencies needed from
# requirements_lock.txt.
pip_parse(
    name = "pip_deps",
    extra_pip_args = [
        "--index-url",
        "https://mirrors.cloud.tencent.com/pypi/simple",
        "--extra-index-url",
        "https://pypi.tuna.tsinghua.edu.cn/simple",
        "--trusted-host",
        "mirrors.cloud.tencent.com pypi.tuna.tsinghua.edu.cn",
        "--timeout",
        "120",
    ],
    requirements_lock = "//:requirements.txt",
)

# Load the starlark macro which will define your dependencies.
load("@pip_deps//:requirements.bzl", "install_deps")

# Call it to define repos for your requirements.
install_deps()

# setup rules_proto
http_archive(
    name = "rules_proto",
    sha256 = "e017528fd1c91c5a33f15493e3a398181a9e821a804eb7ff5acdd1d2d6c2b18d",
    strip_prefix = "rules_proto-4.0.0-3.20.0",
    urls = ["https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.20.0.tar.gz"],
)

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")

rules_proto_dependencies()

rules_proto_toolchains()

# setup protobuf
http_archive(
    name = "com_google_protobuf",
    sha256 = "4a7e87e4166c358c63342dddcde6312faee06ea9d5bb4e2fa87d3478076f6639",
    strip_prefix = "protobuf-21.5",
    urls = ["https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.5.tar.gz"],
)

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
